<div class="row">
    <div class="col-lg-12">
        <div class="ibox">
            <div class="ibox-title">
                <h5>
                    <vc:i18n name="修改" namespace="editVisit"></vc:i18n>
                </h5>
                <div class="ibox-tools" style="top:10px;">
                    <button type="button" class="btn btn-white btn-sm" v-on:click="vc.goBack()">
                        <i class="fa fa-close"></i>返回
                    </button>
                </div>
            </div>
            <div class="ibox-content">
                <div class="form-group row">
                    <label class="col-sm-1 col-form-label text-right">
                        <vc:i18n name='姓名' namespace='editVisit'></vc:i18n>
                    </label>
                    <div class="col-sm-4">
                        <input v-model="editVisitInfo.name" type="text"
                            :placeholder="vc.i18n('必填，请填写姓名','editVisit')" class="form-control">
                    </div>
                    <label class="col-sm-2 col-form-label text-right">
                        <vc:i18n name='性别' namespace='editVisit'></vc:i18n>
                    </label>
                    <div class="col-sm-4">
                        <select class="custom-select" v-model="editVisitInfo.visitGender">
                            <option selected disabled value="">{{vc.i18n('必填，请选择性别','editVisit')}}</option>
                            <option value="0">男</option>
                            <option value="1">女</option>
                        </select>
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-1 col-form-label text-right">
                        <vc:i18n name='电话号码' namespace='editVisit'></vc:i18n>
                    </label>
                    <div class="col-sm-4">
                        <input v-model="editVisitInfo.phoneNumber" type="text"
                            :placeholder="vc.i18n('必填，请填写电话号码','editVisit')" class="form-control">
                    </div>
                    <label class="col-sm-2 col-form-label text-right">
                        <vc:i18n name='访客类型' namespace='editVisit'></vc:i18n>
                    </label>
                    <div class="col-sm-4">
                        <select class="custom-select" v-model="editVisitInfo.typeId">
                            <option selected disabled value="">{{vc.i18n('必填，请选择访客类型','editVisit')}}</option>
                            <option v-for="(item, index) in visitTypeList" :key="index" :value="item.typeId">
                                {{item.name}}
                            </option>
                        </select>
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-1 col-form-label text-right">
                        <vc:i18n name='拜访房屋' namespace='editVisit'></vc:i18n>
                    </label>
                    <div class="col-sm-3">
                        <input v-model="editVisitInfo.roomName" type="text"
                            disabled :placeholder="vc.i18n('必填，请选择拜访房屋','editVisit')" class="form-control">
                    </div>
                    <div class="col-sm-1">
                        <button type="button" class="btn btn-primary btn-sm" v-on:click="_selectRoom()">选择</button>
                    </div>
                    <label class="col-sm-2 col-form-label text-right">
                        <vc:i18n name='拜访时间' namespace='editVisit'></vc:i18n>
                    </label>
                    <div class="col-sm-4">
                        <input v-model="editVisitInfo.visitTime" type="text"
                            :placeholder="vc.i18n('选填，请选择开始时间','editVisit')" class="form-control editVisitTime">
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-1 col-form-label text-right">
                        <vc:i18n name='拜访事由' namespace='editVisit'></vc:i18n>
                    </label>
                    <div class="col-sm-10">
                        <textarea v-model="editVisitInfo.visitCase" type="text" rows="5"
                            :placeholder="vc.i18n('选填，请填写拜访事由','editVisit')" class="form-control"></textarea>
                    </div>
                </div>
                <div class="ibox-content">
                    <button class="btn btn-primary float-right" type="button" v-on:click="editVisit()">
                        <i class="fa fa-check"></i>&nbsp;
                        <vc:i18n name="保存"></vc:i18n>
                    </button>
                    <button type="button" class="btn btn-warning float-right" style="margin-right:20px;" v-on:click="vc.goBack()">
                        <vc:i18n name="取消"></vc:i18n>
                    </button>
                </div>
            </div>
        </div>
    </div>
</div>
<vc:create path="property/searchOwner" emitChooseOwner="editVisit" emitLoadData="editVisit"></vc:create>

